body {
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 100vh; /* 设置最小高度为视口高度 */
    background-image: url('../img/background.jpg'); 
    background-size: cover; /* 让背景图片覆盖整个页面 */
    background-position: center; /* 背景图片居中显示 */
    overflow: hidden; /* 隐藏溢出内容 */
}

.svg-image {
    position: absolute;
    top: 15px; /* 距离顶部的距离，可按需调整 */
    right: 200px; /* 距离右侧的距离，可按需调整 */
    width: 80px; /* 设置宽度 */
    height: auto; /* 保持宽高比 */
    z-index: 100; /* 确保图标显示在其他元素之上 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航栏样式 */
.top-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 106px;
    opacity: 1;
    background-color: rgba(255, 255, 255, 1);
}

.nav-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 70px;
    border-radius: 45px;
    opacity: 1;
    background-color: rgba(229, 229, 229, 1);
}

.search-box {
    position: absolute;
    left: 21.56px;
    top: 9px;
    width: 56.25px;
    height: 21.88px;
    opacity: 1;
}

.text-area {
    position: absolute;
    right: 40px;
    top: 40px;
    width: 120px;
    height: 34px;
    font-size: 30px;
    font-weight: 400;
    line-height: 33.4px;
    color: rgba(0, 0, 0, 1);
    text-decoration: none;
}

.main-page-svg {
    position: absolute;
    left: 20px;
    top: 20px;
}

.Search-svg {
    position: absolute;
    right: 380px;
    top: 30px;
}

/* 标签区域 */
.tag-area {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 600px;
    margin-bottom: 20px;
    margin-top:auto; /* 新增：将标签栏整体下移 */
}

.tag {
    padding: 8px 15px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.tag:hover {
    background: #f0f0f0;
}

/* 内容区域 */
.content-area {
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 120px; /* 下移内容区域 */
    width: 70%; /* 新增：设置宽度为80% */
    margin-left: auto; /* 新增：居中 */
    margin-right: auto; /* 新增：居中 */
}

/* 帖子列表项 */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}

.post-item:hover {
    background-color: #f9f9f9;
}

.post-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.post-author {
    font-weight: bold;
}

.post-content {
    color: #666;
}

.like-button {
    padding: 8px 15px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.like-button:hover {
    background-color: #0056b3;
}

/* 加号按钮 */
.add-post-button {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background-color: #007BFF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    transition: background-color 0.3s;
}

.add-post-button:hover {
    background-color: #0056b3;
}
